(function () {
    'use strict';

    angular.module('reportOfficeAddin')
    .controller('homeController', ['dataService', homeController]);

    /**
     * Controller constructor
     */
    function homeController(dataService) {
        console.log('homeController');
        var vm = this;  // jshint ignore:line
        vm.title = 'home controller';
        vm.dataObject = {};

        getDataFromService();

        function getDataFromService() {
            dataService.getData()
              .then(function (response) {
                  vm.dataObject = response;
              });
        }
    }

})();
